package net.mingsoft.basic.util;

import org.apache.commons.lang3.*;
import com.github.stuxuhai.jpinyin.*;

public class PinYinUtil
{
    public static String getPingYin(final String inputString) {
        if (!StringUtils.isBlank((CharSequence)inputString)) {
            try {
                return PinyinHelper.convertToPinyinString(inputString, "", PinyinFormat.WITHOUT_TONE);
            }
            catch (PinyinException e) {
                e.printStackTrace();
            }
        }
        return "";
    }
}
